package org.example;

import org.springframework.ai.chat.memory.ChatMemory;
import org.springframework.ai.chat.memory.InMemoryChatMemory;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.context.annotation.Bean;

@SpringBootApplication
@EnableCaching
@EnableDiscoveryClient
public class eva {
    public static void main(String[] args) {
        SpringApplication.run(eva.class, args);
    }
    @Bean
    public ChatMemory chatMemory() {
      return new InMemoryChatMemory();
    }
}
